//
//  ipjsua_app_callback.cpp
//  ipjsua
//
//  Created by longzhiyuan on 15/4/23.
//  Copyright (c) 2015年 Teluu. All rights reserved.
//

#import "ipjsua_app_callback.h"
#import "iToast.h"

void PjsuaAppCallback::onStarted(const char *msg)
{
    printf("%s",msg);
}
void PjsuaAppCallback::onStopped(int restart)
{
    
}
void PjsuaAppCallback::onregstate(int isreg, int regcode)
{
    
    
    printf("\n注册返回来了:%d\n",isreg);
}
void PjsuaAppCallback::onincomingcall(const char * url)
{
}
void PjsuaAppCallback::oncallstate(int recode)
{
    NSLog(@"==PjsuaAppCallback===oncallstate========%d",recode);
    [[NSNotificationCenter defaultCenter] postNotificationName:@"CALLSTATENOTIFICATION" object:[NSString stringWithFormat:@"%d",recode]];
}
void PjsuaAppCallback::onpager(const char *user, const char * msg)
{
}
void PjsuaAppCallback::ontyping(const char * user)
{
}
void PjsuaAppCallback::ontransportstate(int state, const char * addr)
{
}



